const state = {
  isCollapse: true, //面板展开收起
  visitedviews: [], //存放所有浏览过的且不重复的路由数据
  current: {}, //当前路由信息
  home: {}, //首页路由信息
  role: [], //首页路由信息
  menus: [
    // {
    //   id: 1,
    //   parentId: 0,
    //   sort: 1,
    //   path: '/Home',
    //   title: '首页',
    //   icon: 'el-icon-s-home',
    // },
    {
      id: 2,
      parentId: 0,
      sort: 2,
      path: "/Member",
      title: "商户中心",
      icon: "el-icon-s-shop",
      children: [{
          id: 6,
          parentId: 2,
          sort: 1,
          path: "/MemberControl",
          title: "代理商管理"
        },
        {
          id: 21,
          parentId: 2,
          sort: 2,
          path: "/BannerList",
          title: "商户管理"
        },
      ]
    },
    // {
    //   id: 3,
    //   parentId: 0,
    //   sort: 3,
    //   path: "/Lesson",
    //   title: "课程中心",
    //   icon: 'el-icon-s-order',
    //   children: [
    //     {
    //       id: 7,
    //       parentId: 3,
    //       sort: 1,
    //       path: "/LessonControl",
    //       title: "课程管理"
    //     },
    //     {
    //       id: 8,
    //       parentId: 3,
    //       sort: 2,
    //       path: "/LeagueControl",
    //       title: "团课管理"
    //     },
    //   ]
    // },
    {
      id: 4,
      parentId: 0,
      sort: 4,
      path: "/User",
      title: "用户管理",
      icon: 'el-icon-s-custom',
      children: [
        {
          id: 9,
          parentId: 4,
          sort: 1,
          path: "/UserControl",
          title: "用户列表"
        },
        // {
        //   id: 10,
        //   parentId: 4,
        //   sort: 2,
        //   path: "/PersonalCenter",
        //   title: "个人中心"
        // },
      ]
    },


    {
      id: 3,
      parentId: 0,
      sort: 3,
      path: "/Goods",
      title: "商品中心",
      icon: 'el-icon-s-order',
      children: [{
          id: 21,
          parentId: 3,
          sort: 1,
          path: "/GoodsList",
          title: "商品列表"
        },
        // {
        //   id: 22,
        //   parentId: 3,
        //   sort: 2,
        //   path: "/Cate",
        //   title: "菜品分类管理"
        // },
      ]
    },
    {
      id: 4,
      parentId: 0,
      sort: 4,
      path: "/Project",
      title: "结算中心",
      icon: 'el-icon-s-cooperation',
      children: [{
        id: 25,
        parentId: 4,
        sort: 1,
        path: "/ProjectList",
        title: "商户结算"
      },
      {
        id: 56,          
        parentId: 4,
        sort: 1,
        path: "/AgentContent",
        title: "代理商结算"
      }
    ]
    },
    {
      id: 10,
      parentId: 0,
      sort: 2,
      path: "/AppLet",
      title: "小程序管理",
      icon: 'el-icon-s-cooperation',
      children: [{
        id: 67,
        parentId: 10,
        sort: 1,
        path: "/BannerContent",
        title: "Banner管理"
      },
      {
        id: 88,          
        parentId: 10,
        sort: 2,
        path: "/RecommendGoods",
        title: "推荐商品管理"
      },
      {
        id: 89,          
        parentId: 10,
        sort: 3,
        path: "/GoodsDefault",
        title: "商品默认介绍管理"
      }
    ]
    },

    {
      id: 5,
      parentId: 0,
      sort: 5,
      path: "/Discount",
      title: "活动中心",
      icon: 'el-icon-s-ticket',
      children: [
        {
        id: 26,
        parentId: 5,
        sort: 1,
        path: "/DiscountList",
        title: "优惠券管理"
      },
    ]
    },
    {
      id: 6,
      parentId: 0,
      sort: 6,
      path: "/Locker",
      title: "设备中心",
      icon: 'el-icon-receiving',
      children: [{
          id: 27,
          parentId: 6,
          sort: 1,
          path: "/LockerList",
          title: "设备管理"
        },
        {
          id: 16,
          parentId: 6,
          sort: 2,
          path: "/Advertising",
          title: "设备广告"
        },
     
      ]
    },
    {
      id: 7,
      parentId: 0,
      sort: 7,
      path: "/Deliver",
      title: "鉴定中心",
      icon: 'el-icon-bicycle',
      children: [{
          id: 28,
          parentId: 7,
          sort: 1,
          path: "/DeliverList",
          title: "初鉴"
        },
        {
          id: 29,
          parentId: 7,
          sort: 2,
          path: "/DeliverLockerList",
          title: "送菜员关联柜子列表"
        }
      ]
    },
    {
      id: 8,
      parentId: 0,
      sort: 8,
      path: "/Order",
      title: "订单中心",
      icon: 'el-icon-notebook-2',
      children: [{
          id: 30,
          parentId: 8,
          sort: 1,
          path: "/MenuOrders",
          title: "鉴定订单"
        },
        {
          id: 31,
          parentId: 8,
          sort: 2,
          path: "/DeliverOrders",
          title: "商品订单"
        },
        {
          id: 32,
          parentId: 8,
          sort: 3,
          path: "/StoreLog",
          title: "回收订单"
        },
      ]
    },
    {
      id: 9,
      parentId: 0,
      sort: 9,
      path: "/Role",
      title: "权限管理",
      icon: 'el-icon-magic-stick',
      children: [{
        id: 33,
        parentId: 9,
        sort: 1,
        path: "/AuthRole",
        title: "角色列表"
      }, {
        id: 34,
        parentId: 9,
        sort: 2,
        path: "/AuthUser",
        title: "员工管理"
      }, {
        id: 35,
        parentId: 9,
        sort: 3,
        path: "/AuthMenu",
        title: "权限列表"
      }]
    },
  ], //所有的导航栏
  index: "/Index", //子级路由的父路由
  persistence: {
    type: true, //标签页
    footer: true, //底部
  }, //需要持久化的数据
};
export default state;
